import request from './request'

// 居民人均收支项
export function getIncomeExpeseItems() {
  return request({
    url: '/calculator/item/',
    method: 'GET'

  })
}

// 行业管理
export function getIndustries() {
  return request({
    url: '/calculator/industry/',
    method: 'GET'
  })
}

// 行业城镇单位在岗职工平均工资
export function getIndustWage(query) {
  return request({
    url: '/calculator/indust_wage/',
    method: 'GET',
    params: query
  })
}

// 居民人均收支情况表
export function getResIncomeExpense(query) {
  return request({
    url: '/calculator/res_income_expend/',
    method: 'GET',
    params: query
  })
}

// 省级编码
export function getProvinceList() {
  return request({
    url: '/calculator/province_list/',
    method: 'GET'
  })
}
// 市级编码
export function getCityList() {
  return request({
    url: '/calculator/city_list/',
    method: 'GET'
  })
}

// 行业平均工资
export function getIndustAverWage(params) {
  return request({
    url: '/calculator/indust_aver_wage/',
    method: 'GET',
    params
  })
}

// 丧葬费
export function getFuneralExpense(params) {
  return request({
    url: '/calculator/funeral/',
    method: 'GET',
    params
  })
}

// 护理费
export function getIndustNurseWage(params) {
  return request({
    url: '/calculator/indust_nurse_wage/',
    method: 'GET',
    params
  })
}
// 交通事故计算
export function calcTraffic(data) {
  return request({
    url: '/calculator/compute/',
    method: 'POST',
    data
  })
}